package com.ywq.train.aspect;

import org.aopalliance.intercept.Joinpoint;


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyAspect {
    @Before("execution(public void com.ywq.train.service.UserService.test())")
        public void yeliBefore(/*Joinpoint joinpoint*/) {
//        System.out.println(joinpoint.getTarget());
        System.out.println("yeliBefore");
    }

  /*  @Before("execution(public void com.ywq.train.service.UserService.test())")
        public void yeliBefore(Joinpoint joinpoint) {
//            yeliBefore();
        System.out.println(joinpoint.getTarget());
        System.out.println("yeliBefore");
        }
*/

}
